#include"CRectangle.h"

CRectangle::CRectangle(int a, int b)
{
	width = new int;
	heigth = new int;
	*width = a;
	*heigth = b;
}
CRectangle::~CRectangle()
{
	delete width;
	delete heigth;
}
int CRectangle::area()
{
	return((*width)*(*heigth));
}